//Global Variables wich are used by the general functions


//---------------Defines-----------------

#define ORDEN PINA
#define yes PINA7

//----------------Flags------------------

int ins=0;
unsigned char finished=0;
unsigned char newcard=0;
char d=0;
int sv;
unsigned char already=0;

//---------Variables for storage---------

int score_player=0;
int score_dealer=0;
int total_player=0;
int total_dealer=0;
char card_display[11]={'y','y','y','y','y','y','y','y','y','y','y'};
unsigned char  last_name[52]={'A','2','3','4','5','6','7','8','9','0','J','Q','K','A','2','3','4','5','6','7','8','9','0','J','Q','K','A','2','3','4','5','6','7','8','9','0','J','Q','K','A','2','3','4','5','6','7','8','9','0','J','Q','K'};
unsigned char last_type[52]={'c','c','c','c','c','c','c','c','c','c','c','c','c','s','s','s','s','s','s','s','s','s','s','s','s','s','h','h','h','h','h','h','h','h','h','h','h','h','h','d','d','d','d','d','d','d','d','d','d','d','d','d'};
int pac[52];

//---------Variables for Control---------


int notA=0; //sino
int i=0;
int j=0;
int h;
int rn;
unsigned char game_player[5]={0};
int screen_cards[11]={1,3,4,6,7,9,10,12,13,15,16};
int card_number_player=2;
int card_number_dealer=2;
unsigned char next_card=0,card=0,card_played=52,cards_played[52]={0};
unsigned char other=0,card_good=0,value=0;
unsigned char numbers[52]={'A','2','3','4','5','6','7','8','9','0','J','Q','K','A','2','3','4','5','6','7','8','9','0','J','Q','K','A','2','3','4','5','6','7','8','9','0','J','Q','K','A','2','3','4','5','6','7','8','9','0','J','Q','K'};
unsigned char symbs[52]={'c','c','c','c','c','c','c','c','c','c','c','c','c','d','d','d','d','d','d','d','d','d','d','d','d','d','h','h','h','h','h','h','h','h','h','h','h','h','h','s','s','s','s','s','s','s','s','s','s','s','s','s'};





 

    









